@isTest
private class UpsertObjectRESTTest {
    static testMethod void testMethod1() {
        UpsertObjectREST.ObjectRestArgs arg1 = new UpsertObjectREST.ObjectRestArgs();
		String data = '%5b%7b%22Username%22%3a%22841293956%40qq.com%22%2c%22LastName%22%3a%22%e5%bb%96%e6%96%b0%22%2c%22Alias%22%3a%22%e5%bb%96%e6%96%b0%22%2c%22Email%22%3a%22841293956%40qq.com%22%2c%22MobilePhone%22%3a%22jawave%22%2c%22EmployeeNumber%22%3a%22002683%22%2c%22TimeZoneSidKey%22%3a%22Asia%2fShanghai%22%2c+%22LocaleSidKey%22%3a%22zh_CN%22%2c+%22EmailEncodingKey%22%3a%22GB2312%22%2c+%22ProfileId%22%3a%2200e28000001vqlOAAQ%22%2c+%22LanguageLocaleKey%22%3a%22zh_CN%22%2c%22IsActive%22%3a%22true%22%7d%5d';
		arg1.objectName = 'User';
		arg1.operationType = '1';

		System.debug('==='+UpsertObjectREST.upsertObject(arg1.objectName,arg1.operationType,data,''));
		List<Account> accList = [select Id ,Name from Account where Name = 'ObjectRestArgs'];
		System.debug('==='+ accList);
		System.debug('==='+UpsertObjectREST.upsertObject(arg1.objectName,'2',data,'EmployeeNumber'));

		UpsertObjectREST.dataHandler('1', 'CURRENCY');
		UpsertObjectREST.dataHandler('1', 'INTEGER');
		UpsertObjectREST.dataHandler('1900-11-11', 'DATE');
		UpsertObjectREST.dataHandler('1900-11-11 10:00:00', 'DATETIME');
		UpsertObjectREST.dataHandler('10:00:00', 'TIME');
		UpsertObjectREST.dataHandler('false', 'BOOLEAN');
    }
}